package com.du.springmvc.pojo;

/**
 * @author : DuJiabao
 * @Date : 2021/3/29 23:44
 * @Project : spring-mvc
 * @File : null.java
 * @Desc :
 */
public class Father extends Person {
  private Person son;

  public Father() {
  }

  public Father(String name, Integer id, Person son) {
    super(name, id);
    this.son = son;
  }

  public Person getSon() {
    return son;
  }

  public void setSon(Person son) {
    this.son = son;
  }

  @Override
  public String toString() {
    return "Father{" +
            "id=" + getId() + ", " +
            "name=" + getName() + ", " +
            "son=" + son +
            '}';
  }
}
